home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
doom
/
server_1.zip
/
_SERVCON.QC
< prev
next >
Wrap
Text File
|
1996-10-04
|
3KB
|
98 lines
/*
**
** _servcon.qc (ServerConsole Code , 1.1)
**
** Copyright (C) 1996 Johannes Plass
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
** Author: Johannes Plass (plass@dipmza.physik.uni-mainz.de)
**
*/
void(entity player) ServerConsoleInit =
{
if (!USE_MODULE_SERVERCONSOLE) return;
// nothing to be done here.
};
void(entity player) ServerConsoleInfo =
{
if (!USE_MODULE_SERVERCONSOLE) return;
// nothing to be done here.
};
void(entity player) ServerConsoleActiveMessage =
{
if (!USE_MODULE_SERVERCONSOLE) return;
// 123456789#123456789#123456789#12345678
sprint(player," ServerConsole\n");
};
void(entity player) ServerConsolePlayerEntered =
{
if (!USE_MODULE_SERVERCONSOLE) return;
dprint (self.netname);
dprint (" entered the game\n");
};
void(entity targ, entity attacker) ServerConsoleClientObituary =
{
//dprint ("ServerConsoleClientObituary: executing\n");
if (!USE_MODULE_SERVERCONSOLE) return;
if (targ.classname == "player") {
if (attacker.classname == "teledeath") {
// telefragging
dprint(targ.netname);
dprint(" was telefragged by ");
dprint(attacker.netname);
dprint("\n");
} else if (attacker.classname == "teledeath2") {
// never seen in game, so may be wrong here
dprint(targ.netname);
dprint(" had an accident\n");
} else if (attacker.classname == "player") {
if (targ == attacker) {
// player killed by own weapon
dprint(targ.netname);
dprint(" had an accident\n");
} else {
// attacker killed target
dprint(targ.netname);
dprint(" was killed by ");
dprint(attacker.netname);
dprint("\n");
}
} else {
// player killed by environment (slime, water, lava etc.)
dprint(targ.netname);
dprint(" had an accident\n");
}
}
};
void(entity player) ServerConsoleClientSuicide =
{
//dprint ("ServerConsoleClientSuicide: executing\n");
if (!USE_MODULE_SERVERCONSOLE) return;
dprint(player.netname);
dprint(" suicides\n");
};